<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>发布资源</title>
    <link rel="stylesheet" href="../css/resource-send.css">
    <script type="text/javascript" src="../js/jquery.js"></script>
    <%--<script type="text/javascript" src="../js/space-resource-send.js"></script>--%>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src=" ../ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="  ../ueditor/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="  ../ueditor/lang/zh-cn/zh-cn.js"></script>
</head>

<body>
<!--**************顶部导航****************-->
<%@include file="../jsp/common/nav.jsp"%>
<!--**************左侧导航****************-->
<%@include file="../jsp/common/sidebar-scroll.jsp"%>
<!--***************右侧发布资源界面*******************-->
<div class="right">
    <!--标题导航-->
    <div class="resource-nav">
        <span class="resource-nav-title"><a href="/index/main">学习空间</a></span>
        >
        <span class="resource-nav-title"><a href="/index/space-main?space_id=${space.id}&name=${space.name}">${space.name}</a></span>
        >
        <span class="resource-nav-title"><a href="/resource/space-resource">资源区</a></span>
        >
        <span>发布资源</span>
    </div>
    <!--资源标题-->
    <div class="resource-title">
        <h3>发布资源</h3>
        <form:form action="/resource/insert_commit" enctype="multipart/form-data" method="post">
            <input type="text" name="title" id="content" value="" size="132" placeholder="标题"/>
                <script id="editor" type="text/plain"  style="width:900px;height:400px;"></script>
                <script type="text/javascript">
                // 实例编辑器化
                 var ue= UE.getEditor('editor');
                </script>

            <%--资源描述--%>
            <div class="resource-detail">
                <span class="detail-title">资源描述</span>
                <span>
                       <textarea name="detail" cols="100" rows="3"></textarea>
                </span>
            </div>

            <!--标签选择-->
            <div class="resource-detail">
                <span class="tab-title">输入标签内容：</span>
                <input type="text" name="label" size="50"/>
                (必填项)
            </div>

            <!--资源附件-->

            <div class="resource-file">
                <span class="file-title">资源附件</span>
                <span>
                       <input type="file" name="file" multiple="multiple"/>
                </span>
            </div>

            <!--资源按钮-->
            <div class="resource-button">
                <input type="submit" id="submit" value="提交"/>
                <input type="reset" id="rest" value="取消"/>
            </div>
        </form:form>
    </div>
</div>
</body>
</html>